<?php


namespace app\controllers;


use app\models\request\ReqRoleList;
use app\service\SysRoleService;

class RoleListController extends BaseJsonController
{
    public function doService($req, $userInfo)
    {
        $service = new SysRoleService();
        return $service->queryPage($req);
    }

    /**
     * @return ReqRoleList|null
     */
    protected function injectionReq()
    {
        return new ReqRoleList();
    }



    protected function permissionName()
    {
          return "sys/role";
    }
}